import request from '@/utils/request'

// 巡查报表
export function queryStatement(query) {
    return request({
        url: '/comp/patrolEnter/queryStatement',
        method: 'get',
        params: query
    })
}

// 巡查记录
export function queryPatrolRecord(query) {
    return request({
        url: '/comp/patrolEnter/queryPatrolRecord',
        method: 'get',
        params: query
    })
}

// 查询园林巡查录入列表
export function listPatrolEnter(query) {
    return request({
        url: '/comp/patrolEnter/list',
        method: 'get',
        params: query
    })
}

// 获取园林巡查录入详细信息
export function getPatrolEnter(id) {
    return request({
        url: '/comp/patrolEnter/' + id,
        method: 'get'
    })
}

// 新增园林巡查录入
export function addPatrolEnter(data) {
    return request({
        url: '/comp/patrolEnter',
        method: 'post',
        data: data
    })
}

// 修改园林巡查录入
export function updatePatrolEnter(data) {
    return request({
        url: '/comp/patrolEnter',
        method: 'put',
        data: data
    })
}

// 删除园林巡查录入
export function delPatrolEnter(id) {
    return request({
        url: '/comp/patrolEnter/' + id,
        method: 'delete'
    })
}
